//
// Created by Administrator on 2021/12/11 0011.
//
#include <stdio.h>
#include "pointerpointer.h"

//测试指针的指针
void test_pointer_pointer(){
    char *a[2] = {"123456","654321"};
    char **cpointer = a;
    //打印"654321"
    printf("%s\n",*(cpointer+1));
    printf("%s\n",a[1]);
    //打印"654321"的‘6’
    printf("%c\n",*(*(cpointer+1)));
    printf("%c\n",(*(cpointer+1))[0]);
    printf("%c\n",a[1][0]);
    printf("%c\n",*a[1]);
}